<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'session.jsp' starting page</title>
    

  </head>
  
  <body>
  	
  
    SessionID:<%=session.getId() %><br/>
    
    创建时间：<%=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss ms").format(new Date(session.getCreationTime())) %><br/>
    最后访问的时间：<%=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss ms").format(new Date(session.getLastAccessedTime()))  %>
    	<%
    	
  		session.invalidate();
  	%>
  </body>
</html>
